export default{ 
  namespaced:true,
  state:{
      isShowToast:false,
      toastMsg:"手机号",
     toastType:"类型"
  },
  mutations:{
      changeIsShowToast(state,payload){
          state.isShowToast=payload.isshow
         if(payload.isshow){
            state.toastMsg=payload.msg
            state.toastType=payload.type
         }

          
         
      }
  },
  // 放异步代码
  actions: {
      asyncChangeIsShowToast(context,payload){
        //   console.log(123);
          context.commit("changeIsShowToast",payload)
          setTimeout(()=>{
            // console.log(456);
              context.commit("changeIsShowToast",{
                  isshow:true
              })

          },1000)
      }
  }
}